package com.yupi.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guazai.common.pojo.InterfaceInfo;
import com.yupi.project.model.dto.interfaceinfo.InterfaceInfoInvokeRequest;
import com.yupi.project.model.vo.AnalysisVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author yiyan
* @description 针对表【interface_info(接口信息)】的数据库操作Service
* @createDate 2024-07-14 00:01:01
*/
public interface InterfaceInfoService extends IService<InterfaceInfo> {

    /**
     *
     * @param interfaceInfo
     * @param add
     */
    void validInterfaceInfo(InterfaceInfo interfaceInfo, boolean add);

    /**
     * 调用接口方法
     * @param invokeRequest
     * @param request
     * @return
     */
    String invokeInterfaceInfo(InterfaceInfoInvokeRequest invokeRequest,
                               HttpServletRequest request);

    List<AnalysisVO> getTopInterfaceInfo();
}
